{% extends "base.html" %}
{% block title %}校园互动博客 - {{title}}{% endblock %}
{% block css %}
	<link href="{{APPSTATIC}}css/blog.css" rel="stylesheet">
{% endblock %}
{% block head %}
	<link rel="shortcut icon" href="{{APPSTATIC}}images/favicon.ico" />
{% endblock %}
{% block wrap %}
	<header class="page-header">
		<div class="header-in">
			<div class="logo"></div>
			<nav>
			{% for key, title in handler.config.topnav %}
				<a href="{{APPURL}}{{key}}"{%ifequal key handler.route.1%} class="active"{%endifequal%}>{{title}}</a>
			{% endfor %}
				<a href="/evaluate/login/">评价系统</a>
			</nav>
			<span class="nav-btns">
			{% if handler.user %}
				<a href="{{APPURL}}mine/setting">{{handler.user.getname}}</a>
				<a href="{{APPURL}}logout">退出</a>
			{% else %}
				<a href="{{APPURL}}login">登录</a>
				{#<a href="{{APPURL}}register">注册</a>#}
			{% endif %}
			</span>
			<form class="search">
				<input type="search" class="search" name="search">
				<button class="btn-search"><i class="icon icon-search"></i></button>
			</form>
		</div>
	</header>
	<div class="main">{% block main %}{% endblock %}</div>
	{% comment %}<aside class="aside-right">
		<div class="to_top">回到顶部</div>
		<div class="qrcode-block">
			<span>扫码访问</span>
			<div class="qrcode-wrapper">
				<div id="qrcode"></div>
				<em>用手机扫码访问本页</em>
			</div>
		</div>
	</aside>{% endcomment %}
{% endblock %}